<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="2">
  <!--tr表示行 td表示列-->
    <!--colspan跨列-->

  <tr>
    <td colspan="2">1-1</td>
    <td>1-2</td>
      <!--rowspan跨行-->
    <td rowspan="2">1-3</td>
  </tr>
    <tr>
    <td>2-1</td>
    <td>2-2</td>
    <td>2-3</td>
  </tr>
</table>
<hr>
<table border="2">

  <!--表格标题-->
  <caption>购物车</caption>
  <tr>
    <th>编号</th>
    <th>商品名</th>
    <th>单价</th>
  </tr>
  <tr>
    <td>1</td>
    <td>电脑</td>
    <td>9999</td>
  </tr>
  <tr>
    <td>7</td>
    <td>自行车</td>
    <td>199</td>
  </tr>
</table>
</body>
</html>